<template>
<div class="bt-warning">
    <el-popover placement="top" width="248" v-model="visibleDisble">
        <div class="send-box">
            <!--
        <p class="send-title">发布顺序：</p>
        <el-input v-model="inputSend" placeholder="请输入排序值1～5"></el-input>-->
            <div>
                确定发布此条信息吗？

            </div>
        </div>
        <div style="text-align: right; margin: 0">
            <el-button size="mini" type="text" @click="visibleDisble = false">取消</el-button>
            <el-button type="primary" size="mini" @click="BtSend">确定</el-button>
        </div>
        <el-button slot="reference" type="Btsend" v-if="_SHOWBTN(showBetCode)">发布</el-button>
    </el-popover>
</div>
</template>

<script>
export default {
    data() {
        return {
            visibleDisble: false,
            inputSend: "",
        };
    },
    props: ["id", "gettRotationList", "showBetCode"],
    methods: {
        BtSend() {
            this.Api.getArmedSend({
                id: this.id
            }).then(
                (res) => {
                    // console.log(res, 111);

                    this.gettRotationList();
                    this.visibleDisble = false;

                }
            );
        },
    },
};
</script>

<style lang="less" scoped>
/deep/.el-button--Btsend {
    width: 60px;
    height: 28px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    border-radius: 4px;
    color: white;
    padding: 0;
    background: rgba(32, 163, 91, 1) !important;
    margin-right: 20px;
}
</style>
